package com.cqut.service;

import java.util.List;
import java.util.Map;

import com.cqut.dto.LimitShowDTO;
import com.cqut.model.EvaluationEd;

public interface IEvaluationEdService {
    boolean save(EvaluationEd evaluationEd);

    boolean update(EvaluationEd evaluationEd);

    boolean delete(String evaluationId);

    boolean batchDelete(String[] primaryKeys);

    EvaluationEd findModel(String evaluationId);

    EvaluationEd findModel(String evaluationId, String[] parameters);

    Map<String, Object> findMap(String evaluationId);

    Map<String, Object> findMap(String evaluationId, String[][] parameters);

    List<EvaluationEd> loadModels();

    List<EvaluationEd> loadModels(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<EvaluationEd> loadModels(String[] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps();

    List<Map<String, Object>> loadMaps(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps(String[][] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    long count();

    long count(String condition, Object[] values);

    long count(String[] parameters, boolean isDistinct);

    long count(String[] parameters, String condition, Object[] values, boolean isDistinct);

	boolean addNewVersion(EvaluationEd evaluationEdDTO);

	List<Map<String, Object>> getEvaluationEdList(String editionName,
			LimitShowDTO limitShowDTO);

	long getEvaluationEdCount(String editionName);

	Map<String, Object> getEvaluationById(String evaluationId);

	boolean updateEvaluation(EvaluationEd evaluationEdModel);
	
}
